<template>
    <div id="tmp" class="name">
        <a-a @methodForChildEmit="pMethoda">
        </a-a>
    </div>
</template>

<script>
    export default {
        name:'',
        methods:{
            pMethoda(val ){
                console.log("parent: ",val)
            }
        },
        components:{
            "a-a":{
                methods:{
                    A(){
                        console.log("aaa")
                        this.$emit("methodForChildEmit","from child valuex")
                    }
                },
                template:`
            <div id="aa">
                <button v-on:click="A">achild button aa</button>
            </div>
            `
            }
        },
        data(){
            return {}
        }
    }
</script>

<style>
</style>
